PrinterInterface
IntroductionThe base class of the printer interface MethodsClose-(void) Close; DiscussionDisconnect getMacAddress-(NSString *)getMacAddress; DiscussionTo get the address from the bluetooth broadcast, the wifi gets the IP address. Open-(void) Open; DiscussionConnect the printer Read-(void)Read; DiscussionRead data from the printer (useless) Write:-(BOOL) Write:(NSData *)data; DiscussionSend data to the printer WriteAsync:-(void) WriteAsync:(NSData *)data; DiscussionSend data to printer, execute asynchronously PropertiesAddress@property (nonatomic, copy) NSString * Address; DiscussionConnection address blewritetype@property (nonatomic) BleWriteType blewritetype; DiscussionBluetooth write mode IsOpen@property (nonatomic, readonly) BOOL IsOpen; DiscussionWhether the printer has been connected to the printer Name@property (nonatomic, copy) NSString * Name; DiscussionThe device logical name is used for Bluetooth name Port@property (nonatomic) NSInteger Port; DiscussionConnection port (only for wifiInterface use) printerCmdtype@property (nonatomic) PrinterCmdType printerCmdtype; DiscussionInstruction type, sdk internal useless, in order to use the external multi-connection Timeout@property (nonatomic) NSTimeInterval Timeout; DiscussionConnection timeout, unit: second (wifiInterface only) |